<?php
/**
 * @file views-view-fields.tpl.php
 * Default simple view template to all the fields as a row.
 *
 * - $view: The view in use.
 * - $fields: an array of $field objects. Each one contains:
 *   - $field->content: The output of the field.
 *   - $field->raw: The raw data for the field, if it exists. This is NOT output safe.
 *   - $field->class: The safe class id to use.
 *   - $field->handler: The Views field handler object controlling this field. Do not use
 *     var_export to dump this object, as it can't handle the recursion.
 *   - $field->inline: Whether or not the field should be inline.
 *   - $field->inline_html: either div or span based on the above flag.
 *   - $field->wrapper_prefix: A complete wrapper containing the inline_html to use.
 *   - $field->wrapper_suffix: The closing tag for the wrapper.
 *   - $field->separator: an optional separator that may appear before a field.
 *   - $field->label: The wrap label text to use.
 *   - $field->label_html: The full HTML of the label to use including
 *     configured element type.
 * - $row: The raw result object from the query, with all data it fetched.
 *
 * @ingroup views_templates
 */
?>

<?php

$title = isset($row->node_title) ? $row->node_title : 'n.a';
$description = isset($row->field_body[0]['raw']['value']) ? strip_tags($row->field_body[0]['raw']['value']) : 'n.a';

$degrees_n = isset($row->field_field_degrees_n[0]) ? $row->field_field_degrees_n[0]['raw']['value'] : 'n.a';
$minutes_n = isset($row->field_field_degrees_n[0]) ? $row->field_field_minutes_n[0]['raw']['value'] : 'n.a';
$seconds_n = isset($row->field_field_degrees_n[0]) ? $row->field_field_seconds_n[0]['raw']['value'] : 'n.a';
$degrees_e = isset($row->field_field_degrees_e[0]) ? $row->field_field_degrees_e[0]['raw']['value'] : 'n.a';
$minutes_e = isset($row->field_field_degrees_e[0]) ? $row->field_field_minutes_e[0]['raw']['value'] : 'n.a';
$seconds_e = isset($row->field_field_degrees_e[0]) ? $row->field_field_seconds_e[0]['raw']['value'] : 'n.a';

?>

<strong><?php print $title; ?></strong><br/>
Coordinates: <?php print $degrees_n; ?>&deg;<?php print $minutes_n; ?>'<?php print $seconds_n; ?>&quot;N
<?php print $degrees_e; ?>&deg;<?php print $minutes_e; ?>'<?php print $seconds_e; ?>&quot;E <br/>
<?php print $description; ?><br/>

<br/>
